/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "folha_ppp_fator_risco")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FolhaPppFatorRisco.findAll", query = "SELECT f FROM FolhaPppFatorRisco f")})
public class FolhaPppFatorRisco implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    @Column(name = "DATA_INICIO")
    @Temporal(TemporalType.DATE)
    private Date dataInicio;
    @Column(name = "DATA_FIM")
    @Temporal(TemporalType.DATE)
    private Date dataFim;
    private Character tipo;
    @Column(name = "FATOR_RISCO", length = 40)
    private String fatorRisco;
    @Column(length = 15)
    private String intensidade;
    @Column(name = "TECNICA_UTILIZADA", length = 40)
    private String tecnicaUtilizada;
    @Column(name = "EPC_EFICAZ")
    private Character epcEficaz;
    @Column(name = "EPI_EFICAZ")
    private Character epiEficaz;
    @Column(name = "CA_EPI")
    private Integer caEpi;
    @Column(name = "ATENDIMENTO_NR06_1")
    private Character atendimentoNr061;
    @Column(name = "ATENDIMENTO_NR06_2")
    private Character atendimentoNr062;
    @Column(name = "ATENDIMENTO_NR06_3")
    private Character atendimentoNr063;
    @Column(name = "ATENDIMENTO_NR06_4")
    private Character atendimentoNr064;
    @Column(name = "ATENDIMENTO_NR06_5")
    private Character atendimentoNr065;
    @JoinColumn(name = "ID_FOLHA_PPP", referencedColumnName = "ID", nullable = false)
    @ManyToOne(optional = false)
    private FolhaPpp idFolhaPpp;

    public FolhaPppFatorRisco() {
    }

    public FolhaPppFatorRisco(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDataInicio() {
        return dataInicio;
    }

    public void setDataInicio(Date dataInicio) {
        this.dataInicio = dataInicio;
    }

    public Date getDataFim() {
        return dataFim;
    }

    public void setDataFim(Date dataFim) {
        this.dataFim = dataFim;
    }

    public Character getTipo() {
        return tipo;
    }

    public void setTipo(Character tipo) {
        this.tipo = tipo;
    }

    public String getFatorRisco() {
        return fatorRisco;
    }

    public void setFatorRisco(String fatorRisco) {
        this.fatorRisco = fatorRisco;
    }

    public String getIntensidade() {
        return intensidade;
    }

    public void setIntensidade(String intensidade) {
        this.intensidade = intensidade;
    }

    public String getTecnicaUtilizada() {
        return tecnicaUtilizada;
    }

    public void setTecnicaUtilizada(String tecnicaUtilizada) {
        this.tecnicaUtilizada = tecnicaUtilizada;
    }

    public Character getEpcEficaz() {
        return epcEficaz;
    }

    public void setEpcEficaz(Character epcEficaz) {
        this.epcEficaz = epcEficaz;
    }

    public Character getEpiEficaz() {
        return epiEficaz;
    }

    public void setEpiEficaz(Character epiEficaz) {
        this.epiEficaz = epiEficaz;
    }

    public Integer getCaEpi() {
        return caEpi;
    }

    public void setCaEpi(Integer caEpi) {
        this.caEpi = caEpi;
    }

    public Character getAtendimentoNr061() {
        return atendimentoNr061;
    }

    public void setAtendimentoNr061(Character atendimentoNr061) {
        this.atendimentoNr061 = atendimentoNr061;
    }

    public Character getAtendimentoNr062() {
        return atendimentoNr062;
    }

    public void setAtendimentoNr062(Character atendimentoNr062) {
        this.atendimentoNr062 = atendimentoNr062;
    }

    public Character getAtendimentoNr063() {
        return atendimentoNr063;
    }

    public void setAtendimentoNr063(Character atendimentoNr063) {
        this.atendimentoNr063 = atendimentoNr063;
    }

    public Character getAtendimentoNr064() {
        return atendimentoNr064;
    }

    public void setAtendimentoNr064(Character atendimentoNr064) {
        this.atendimentoNr064 = atendimentoNr064;
    }

    public Character getAtendimentoNr065() {
        return atendimentoNr065;
    }

    public void setAtendimentoNr065(Character atendimentoNr065) {
        this.atendimentoNr065 = atendimentoNr065;
    }

    public FolhaPpp getIdFolhaPpp() {
        return idFolhaPpp;
    }

    public void setIdFolhaPpp(FolhaPpp idFolhaPpp) {
        this.idFolhaPpp = idFolhaPpp;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FolhaPppFatorRisco)) {
            return false;
        }
        FolhaPppFatorRisco other = (FolhaPppFatorRisco) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.FolhaPppFatorRisco[ id=" + id + " ]";
    }
    
}
